package com.rainbow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rainbow.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface DepartmentMapper extends BaseMapper<Department> {

    void addDep(@Param("dep") Department department);

    void deleteDep(@Param("dep") Department department);

    List<Department> getDepByPid(Long pid);

    List<Department> getAllDeps();
}
